package cn.itsource.org.domain;

import lombok.Data;

import java.util.List;

//帮助生成get set tostring方法
@Data
public class Department {
    /*主键*/
    private Long id;
    /*部门编号*/
    private String sn;
    /*部门名称*/
    private String name;
    /*部门状态 0 正常 ，-1 停用*/
    private int state;

    private String dirPath;

    /*部门经理 和员工关联*/
    private Employee manager;
    /*上级部门*/
    private Department parent;

    private List<Department> Children;

    public String getValue(){
        return String.valueOf(id);
    }
    public String getLabel(){
        return name;
    }

}
